package com.qf.service.impl;

import com.qf.dao.TakeOutClassifyMapper;
import com.qf.pojo.entity.StoreClassify;
import com.qf.pojo.resp.BaseResp;
import com.qf.service.TakeOutClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName TakeOutClassifyServiceImpl
 * @Description TODO
 * @Author 16222
 * @Date 2022/9/28 17:56
 * @Version 1.0
 **/
@Service
public class TakeOutClassifyServiceImpl implements TakeOutClassifyService {
    @Autowired
    TakeOutClassifyMapper takeOutClassifyMapper;

    //    通过一级查找二级
    @Override
    public BaseResp findAllByListId(int id) {
        List<StoreClassify> allByListId = takeOutClassifyMapper.findAllByListId(id);
        return new BaseResp(200, "success", allByListId);
    }
}
